import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import AdminLogin from "@/components/admin/AdminLogin";
import Element from "element-ui";

Vue.use(Router);
Vue.use(Element, { size: "small", zIndex: 3000 });

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "HelloWorld",
      component: HelloWorld
    },
    {
      path: "/login",
      name: "AdminLogin",
      component: AdminLogin
    }
  ]
});
